package com.grandtech.insurance.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 * 气象预警信息表
 */
public class DbQxyj implements Serializable {
    /**
     * 主键id
     */
    private String id;

    /**
     * 区划代码
     */
    private String qhdm;

    /**
     * 区划名称
     */
    private String qhmc;

    /**
     * 预警范围
     */
    private String yjfw;

    /**
     * 预警类型
     */
    private String yjlx;

    /**
     * 预警级别
     */
    private String yjjb;

    /**
     * 预警等级
     */
    private String yjdj;

    /**
     * 预警时间
     */
    private Date yjtime;

    /**
     * 预警内容
     */
    private String yjnr;

    /**
     * 备注
     */
    private String bz;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getQhdm() {
        return qhdm;
    }

    public void setQhdm(String qhdm) {
        this.qhdm = qhdm;
    }

    public String getQhmc() {
        return qhmc;
    }

    public void setQhmc(String qhmc) {
        this.qhmc = qhmc;
    }

    public String getYjfw() {
        return yjfw;
    }

    public void setYjfw(String yjfw) {
        this.yjfw = yjfw;
    }

    public String getYjlx() {
        return yjlx;
    }

    public void setYjlx(String yjlx) {
        this.yjlx = yjlx;
    }

    public String getYjjb() {
        return yjjb;
    }

    public void setYjjb(String yjjb) {
        this.yjjb = yjjb;
    }

    public String getYjdj() {
        return yjdj;
    }

    public void setYjdj(String yjdj) {
        this.yjdj = yjdj;
    }

    public Date getYjtime() {
        return yjtime;
    }

    public void setYjtime(Date yjtime) {
        this.yjtime = yjtime;
    }

    public String getYjnr() {
        return yjnr;
    }

    public void setYjnr(String yjnr) {
        this.yjnr = yjnr;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DbQxyj other = (DbQxyj) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getQhdm() == null ? other.getQhdm() == null : this.getQhdm().equals(other.getQhdm()))
            && (this.getQhmc() == null ? other.getQhmc() == null : this.getQhmc().equals(other.getQhmc()))
            && (this.getYjfw() == null ? other.getYjfw() == null : this.getYjfw().equals(other.getYjfw()))
            && (this.getYjlx() == null ? other.getYjlx() == null : this.getYjlx().equals(other.getYjlx()))
            && (this.getYjjb() == null ? other.getYjjb() == null : this.getYjjb().equals(other.getYjjb()))
            && (this.getYjdj() == null ? other.getYjdj() == null : this.getYjdj().equals(other.getYjdj()))
            && (this.getYjtime() == null ? other.getYjtime() == null : this.getYjtime().equals(other.getYjtime()))
            && (this.getYjnr() == null ? other.getYjnr() == null : this.getYjnr().equals(other.getYjnr()))
            && (this.getBz() == null ? other.getBz() == null : this.getBz().equals(other.getBz()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getQhdm() == null) ? 0 : getQhdm().hashCode());
        result = prime * result + ((getQhmc() == null) ? 0 : getQhmc().hashCode());
        result = prime * result + ((getYjfw() == null) ? 0 : getYjfw().hashCode());
        result = prime * result + ((getYjlx() == null) ? 0 : getYjlx().hashCode());
        result = prime * result + ((getYjjb() == null) ? 0 : getYjjb().hashCode());
        result = prime * result + ((getYjdj() == null) ? 0 : getYjdj().hashCode());
        result = prime * result + ((getYjtime() == null) ? 0 : getYjtime().hashCode());
        result = prime * result + ((getYjnr() == null) ? 0 : getYjnr().hashCode());
        result = prime * result + ((getBz() == null) ? 0 : getBz().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", qhdm=").append(qhdm);
        sb.append(", qhmc=").append(qhmc);
        sb.append(", yjfw=").append(yjfw);
        sb.append(", yjlx=").append(yjlx);
        sb.append(", yjjb=").append(yjjb);
        sb.append(", yjdj=").append(yjdj);
        sb.append(", yjtime=").append(yjtime);
        sb.append(", yjnr=").append(yjnr);
        sb.append(", bz=").append(bz);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}